<%@page import="com.system.dao.RoleDao"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../common.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'userEdit.jsp' starting page</title>
    <script type="text/javascript">
    
    	$().ready(function(){
    		var param = Dialog.getInstance("view1").getParam("param");
    		param = param.replace("<BR>","\n");
    		$("#private_drug").val(param);
    	});
    	
    	function doSave()
    	{
    		var param = $.trim($("#private_drug").val());
    	
    		if(param == "")
    		{
    			alert("自带注射液不能为空");
    			return;
    		}
    		param = param.replace(/\n/g,"<br/>");
    		var dlg = Dialog.getInstance("view1");
    		dlg.getParam("window").addOtherDrug(param);
    		dlg.close();
    	}
    </script>
  </head>
  
  <body>
  	<center>
	   <form id="winForm" name="winForm">
	   		<table border="0" cellpadding="0" cellspacing="0" style="margin-top: 20px">
				<tr height="40px">
					<td width="100px" valign="top" align="right"><font color="#FF0000">*</font>&nbsp;自带注射液：</td>
					<td width="180px">
						<textarea id="private_drug" rows="10" cols="40"></textarea>
					</td>
				</tr>
	  		</table>
		</form>
	</center>
  </body>
</html>
